package com.dongdongshop.service;

import com.dongdongshop.pojo.TbItem;
import com.dongdongshop.vo.Cart;

import java.util.List;

public interface CartService {


    List<Cart> addCart(Long itemId, Integer num, List<Cart> cartList);

    TbItem getItemList(Long itemId);

    void saveToRedis(String username, List<Cart> cartList);

    List<Cart> getCartListFormRedis(String username);

    List<Cart> mergeCartList(List<Cart> carts, List<Cart> cartListRedis);
}
